<?php
class LeavedModel extends Orm_Base{
    public $table = 'leaved';
    public $field = array(
        'id' => array('type' => "int(11) unsigned",'comment' => ''),
        'w_id' => array('type' => "int(11) unsigned",'comment' => '关联护工ID'),
        'leavetime' => array('type' => "varchar(20)",'comment' => '请假时间'),
        'leavedays' => array('type' => "varchar(20)",'comment' => '请假天数'),
        'status' => array('type' => "tinyint(1)",'comment' => ''),
        'created' => array('type' => "int(11)",'comment' => ''),
        'updated' => array('type' => "int(11)",'comment' => ''),
    );
    public $pk = 'id';
} 
?>
